package red.ouo.distributedtools.standard;

import org.aspectj.lang.ProceedingJoinPoint;

public class ProxyHeader{
    ProceedingJoinPoint pjp;

    public ProxyHeader(ProceedingJoinPoint pjp) {
        this.pjp = pjp;
    }

    public Object run(Object... args){
        try {
            return pjp.proceed(args);
        } catch (Throwable throwable) {
            throwable.printStackTrace();
            return null;
        }
    }
}
